<?php
declare (strict_types = 1);

namespace app\admin\model\erp;

use bbweb\traits\ModelTrait;
use bbweb\basic\BaseModel;

/**
 * 广告模型
 */
class ErpAdverts extends BaseModel
{
    /**
     * 数据表主键
     * @var string
     */
    protected $pk = 'id';

    /**
     * 模型名称
     * @var string
     */
    protected $name = 'erp_adverts';

    use ModelTrait;

    // 设置字段信息
    protected $schema = [
        'id'        => 'int',
        'user_id'   => 'int',
        'scene'     => 'tinyint',
        'tid'       => 'int',
        'type'      => 'tinyint',
        'sys'       => 'tinyint',
        'price'     => 'double',
        'name'      => 'varchar',
        'url'       => 'varchar',
        'imgs'      => 'varchar',
        'times'     => 'int',
        'start_at'  => 'int',
        'end_at'    => 'int',
        'total'     => 'int',
        'status'    => 'tinyint',
        'create_at' => 'int',
        'update_at' => 'int'
    ];

}
